package com.shichenjia.fileupload.entrity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author : shichenjia
 * @date : 2025/5/17 19:02
 * @Version: 1.0
 */
@Data
@TableName(value = "File")
public class FileUpload {
    @TableField()
    private String id;

    @TableField(value = "file_name")
    private String fileName;

    @TableField(value = "file_type")
    private String fileType;

    @TableField(value = "file_path")
    private String filePath;

    @TableField(value = "file_extension")
    private String fileExtension;

    @TableField(value = "file_size")
    private long fileSize;

    @TableField(value = "insert_time", fill = FieldFill.INSERT)
    private LocalDateTime insertTime;

    @TableField(value = "file_url")
    private String fileUrl;
}
